package cn.tedu.boyou.acticle.service.impl;

import cn.tedu.boyou.acticle.domain.Sale;
import cn.tedu.boyou.acticle.mapper.SaleMapper;
import cn.tedu.boyou.acticle.service.ISaleService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class SaleServiceImpl implements ISaleService{

    @Autowired
    private SaleMapper saleMapper;

    @Override
    public void insert(Sale sale) {
        saleMapper.insert(sale);
    }

    @Override
    public List<Sale> listAll() {
        return saleMapper.selectAll();
    }
}
